package com.yunban.project.api.text_check.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunban.project.api.text_check.domain.UserCorrectionCharLimit;

/**
 * @author: lijiajun
 * @date: 2025-02-18
 * @version: 1.0
 */
public interface UserCorrectionCharLimitService extends IService<UserCorrectionCharLimit> {

    /**
     * 获取用户纠错字符限制
     */
    UserCorrectionCharLimit findByUserId(long userId);

    /**
     * 使用数量
     */
    void useCount(long userId, int charLength);
}